Add 'usbfree' target to Windows makefile to allow generation of NT-compatible
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 19 Nov 2004 14:07:12 +0000 (14:07 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 19 Nov 2004 14:07:12 +0000 (14:07 +0000)
executable.

Bump version number.

gpsbabel/Makefile
gpsbabel/mingw/Makefile

index ecf6750e66c523737461b655d0725acc340d8a2d..f0fc695e7a00260e1e6f4c71bb6e0fca48c1d163 100644 (file)
@@ -89,8 +89,8 @@ dep:
        (echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > internal_styles.c || (rm -f internal_styles.c ; exit 1)' ) >> /tmp/dep
        echo Edit Makefile and bring in /tmp/dep
 
-VERSIONU=1_2_5_beta11012004
-VERSIOND=1.2.5_beta11012004
+VERSIONU=1_2_5_beta11192004
+VERSIOND=1.2.5_beta11192004
 #VERSIONU=1_2_4
 #VERSIOND=1.2.4
 
index f5833cb7d0ce72d0a5c97ae5b3442023dc33f0e8..312473814d5137784bdaa4d1035caa7acf3dae06 100644 (file)
@@ -24,3 +24,17 @@ mkwintesto: mkwintesto.c
 
 wintesto.cmd: mkwintesto
        ./mkwintesto ../testo
+
+# The "usbfree" target is useful for generating an executable that 
+# works on NT 3.5 or 4.0 since it doesn't have USB support and tanks
+# on our libsetupapi references.
+
+usbfree:
+       $(MAKE) INHIBIT_USB=-DNO_USB gpsbabel-usbfree.exe
+
+gpsbabel-usbfree.exe: $(OBJS)
+       $(CC) -static $(CFLAGS) $(OBJS) lib/libexpat.a -o gpsbabel-usbfree.exe
+       zip -j /tmp/gpsbabel-nousb-$(VERSIOND).zip gpsbabel-usbfree.exe
+
+
+